package cn.fangline.wo.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 抽离
 * @since 2017-04-21
 */
@TableName("city_url")
public class CityUrl extends Model<CityUrl> {

    private static final long serialVersionUID = 1L;

    /**
     * 城市ID
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 城市url
     */
	private String url;
    /**
     * 网站
     */
	private Integer net;
    /**
     * 城市Id
     */
	@TableField("city_id")
	private Integer cityId;
	/**
	 * 城市简写，如xm，beijing
	 */
	private String abbr;

	public String getAbbr() {
		return abbr;
	}

	public void setAbbr(String abbr) {
		this.abbr = abbr;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getNet() {
		return net;
	}

	public void setNet(Integer net) {
		this.net = net;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
